/*
 * MP3.h
 *
 * Created: 2012-06-11 19:20:23
 *  Author: Sebastian_2
 */ 


#ifndef MP3_H_
#define MP3_H_

#include "Globals.h"
#include "drivers/SD/ff.h"
#include <stdio.h>
#include <string.h>

/* here's folder structure looks like

/music/artistName/album1
/music/artistName/album2
...
/music/artistName/albumn

MP3_ScanFiles() enters artistName and, if further folders exist, calls MP3_ReadDirs.
Then MP3_ReadDirs calls MP3_ReadTags.

*/

void MP3_ScanFiles();
void MP3_ReadDirs(WORD time, WORD date, char *s);
void MP3_ReadFiles(WORD time, WORD date, uint8_t clearIDX, char *artistDir, char *filesDir);
FRESULT MP3_ReadTags();


#endif /* MP3_H_ */